<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="TurnoViewDlg" widgetVar="TurnoViewDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.ViewTurnoTitle}">

            <h:form id="TurnoViewForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{turnoController.selected != null}">

                        <h:outputText value="#{bundle.ViewTurnoLabel_idTurno}"/>
                        <h:outputText value="#{turnoController.selected.idTurno}" title="#{bundle.ViewTurnoTitle_idTurno}"/>

                        <h:outputText value="#{bundle.ViewTurnoLabel_nombre}"/>
                        <h:outputText value="#{turnoController.selected.nombre}" title="#{bundle.ViewTurnoTitle_nombre}"/>

                        <h:outputText value="#{bundle.ViewTurnoLabel_descripcion}"/>
                        <h:outputText value="#{turnoController.selected.descripcion}" title="#{bundle.ViewTurnoTitle_descripcion}"/>

                        <h:outputText value="#{bundle.ViewTurnoLabel_horaEntrada}"/>
                        <h:outputText value="#{turnoController.selected.horaEntrada}" title="#{bundle.ViewTurnoTitle_horaEntrada}">
                            <f:convertDateTime pattern="HH:mm:ss" />
                        </h:outputText>

                        <h:outputText value="#{bundle.ViewTurnoLabel_horaSalida}"/>
                        <h:outputText value="#{turnoController.selected.horaSalida}" title="#{bundle.ViewTurnoTitle_horaSalida}">
                            <f:convertDateTime pattern="HH:mm:ss" />
                        </h:outputText>

                        <h:outputText value="#{bundle.ViewTurnoLabel_diaList}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{bundle.Close}" onclick="TurnoViewDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
